package com.example.projectmgmt.repository;

import com.example.projectmgmt.model.Phase;
import com.example.projectmgmt.model.PhaseId;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface PhaseRepository extends JpaRepository<Phase, PhaseId> {

    List<Phase> findByProjectProjectNo(String projectNo);

    boolean existsByIdProjectNoAndIdPhraseId(String projectNo, String phraseId);
}